<?PHP
require_once('./function.php');

if ($_GET['company_name'])	{
	$query = $db->query("select * from `base` where `base_company` = CONVERT( _utf8 '{$_GET['company_name']}' USING gbk )");
	$tmp = $db->fetch_array($query);

	if ($tmp['lid']) {
		echo '<img src="images/error.gif">&nbsp;<code class="red">数据库内发现相同的场所名称，请【<a href="list.php?lid='.$tmp['lid'].'" target="_blank">点此</a>】查看相同数据</code>';
	} else {
		echo '<img src="images/correct.gif">&nbsp;<code class="green">数据库内未发现相同数据，请继续录入</code>';
	}
}
?>